package com.itheima.App;

import com.itheima.pojo.Collection;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CollectionTest {
    public static void main(String[] args) {
        ApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        Collection collection = (Collection) ca.getBean("collection");
        System.out.println(collection.getName()+
                collection.getAge()+
                collection.getSex()+
                collection.getHobby()
        );

    }
}
